package huawei;
/*
* @Author: wanghongfucoder
* @Date:   2017-06-26 15:43:55
* @Last Modified by:   wanghongfucoder
* @Last Modified time: 2017-06-26 15:44:22
*/

import java.util.Arrays;
import java.util.Scanner;
  
public class Strtrander {

    public static void main(String[] args) {
  
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            String s = sc.nextLine();
            String s2 = sc.nextLine();
            String en = en(s);
            String de = de(s2);
            System.out.println(en);
            System.out.println(de);
        }
  
    }
  
    private static String en(String s) {
        char[] cs = s.toCharArray();
        for (int i = 0; i < cs.length; i++) {
            if (cs[i] >= 'A' && cs[i] <= 'Z') {
                if (cs[i] == 'Z') {
                    cs[i] = 'a';
                } else
                    cs[i] = (char) (cs[i] + 33);
            } else if (cs[i] >= 'a' && cs[i] <= 'z') {
                if (cs[i] == 'z') {
                    cs[i] = 'A';
                } else
                    cs[i] = (char) (cs[i] - 31);
            } else if (cs[i] >= '0' && cs[i] <= '9') {
                if (cs[i] == '9') {
                    cs[i] = '0';
                } else {
                    cs[i] = (char) (cs[i] + 1);
                }
            }
        }
        return String.valueOf(cs);
    }
  
    private static String de(String s) {
        char[] cs = s.toCharArray();
        for (int i = 0; i < cs.length; i++) {
            if (cs[i] >= 'A' && cs[i] <= 'Z') {
                if (cs[i] == 'A') {
                    cs[i] = 'z';
                } else
                    cs[i] = (char) (cs[i] + 31);
            } else if (cs[i] >= 'a' && cs[i] <= 'z') {
                if (cs[i] == 'a') {
                    cs[i] = 'Z';
                } else
                    cs[i] = (char) (cs[i] - 33);
            } else if (cs[i] >= '0' && cs[i] <= '9') {
                if (cs[i] == '0') {
                    cs[i] = '9';
                } else {
                    cs[i] = (char) (cs[i] - 1);
                }
            }
        }
        return String.valueOf(cs);
    }
  
  
}